from django.contrib import admin

# Register your models here.
from polls.models import Subject, Teacher


class SubjectAdmin(admin.ModelAdmin):
    list_display = ('no', 'name', 'intro', 'is_hot', 'memo')
    list_display_links = ('no', 'name',)
    search_fields = ('name', )
    ordering = ('no', )


class TeacherAdmin(admin.ModelAdmin):
    list_display = ('no', 'name', 'gender', 'birth', 'intro', 'good_count', 'bad_count',)
    list_display_links = ('no', 'name',)
    search_fields = ('name', )
    ordering = ('no', )


admin.site.register(Subject, SubjectAdmin)
admin.site.register(Teacher, TeacherAdmin)
